home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / WCE30A.ARJ / DSIMAIN.C < prev    next >
C/C++ Source or Header  |  1992-07-15  |  723b  |  40 lines

  1. /*
  2. *
  3. * MODULE: DSIMAIN.C
  4. *
  5. */
  6.  
  7. #include "dsimport.h"
  8.  
  9. HANDLE hInst;
  10.  
  11. /*
  12. *
  13. * FUNCTION: WINMAIN(HANDLE, HANDLE, LPSTR, int)
  14. *
  15. */
  16. int FAR PASCAL WinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow)
  17. HANDLE hInstance;
  18. HANDLE hPrevInstance;
  19. LPSTR lpCmdLine;
  20. int nCmdShow;
  21. {
  22.       MSG msg;
  23.       hInst = hInstance;
  24.  
  25.       if (!hPrevInstance)
  26.            if(!InitializeApplication(hInst))
  27.                   return 0;
  28.            
  29.       if (!InitializeInstance(lpCmdLine, nCmdShow))
  30.            return 0;
  31.       
  32.       while (GetMessage(&msg, NULL, NULL, NULL))
  33.              {
  34.              TranslateMessage(&msg);
  35.              DispatchMessage(&msg);
  36.              }
  37.  
  38.        return(msg.wParam);
  39. }
  40.